﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WMSSystem.YSL.Dto.SignaIR
{
    /// <summary>
    /// 月度销售统计数据
    /// </summary>
    public class MonthlySalesStatisticsDto
    {
        /// <summary>
        /// 年份
        /// </summary>
        public int Year { get; set; }

        /// <summary>
        /// 月份
        /// </summary>
        public int Month { get; set; }

        /// <summary>
        /// 总销售数量
        /// </summary>
        public int TotalSalesNums { get; set; }

        /// <summary>
        /// 总入库数量
        /// </summary>
        public int TotalInput { get; set; }

        /// <summary>
        /// 总销售金额
        /// </summary>
        public decimal TotalSalesAmount { get; set; }

        /// <summary>
        /// 当前库存
        /// </summary>
        public string CurrentInventory { get; set; }

        /// <summary>
        /// 仓库总数
        /// </summary>
        public int WarehouseCount { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }
    }

    /// <summary>
    /// 实时统计数据请求DTO
    /// </summary>
    public class GetRealTimeStatisticsInputDto
    {
        /// <summary>
        /// 年份（可选，默认当前年份）
        /// </summary>
        public int? Year { get; set; }

        /// <summary>
        /// 月份（可选，默认所有月份）
        /// </summary>
        public int? Month { get; set; }
    }

    /// <summary>
    /// 实时统计数据响应DTO
    /// </summary>
    public class GetRealTimeStatisticsOutputDto
    {
        /// <summary>
        /// 月度统计数据列表
        /// </summary>
        public List<MonthlySalesStatisticsDto> MonthlyStatistics { get; set; }

        /// <summary>
        /// 总计数据
        /// </summary>
        public MonthlySalesStatisticsDto TotalStatistics { get; set; }

        /// <summary>
        /// 最后更新时间
        /// </summary>
        public DateTime LastUpdateTime { get; set; }
    }
}
